"use strict";
cc._RF.push(module, 'cbcf9CZU39FN6tlQVYtBIfv', 'AdsUtil');
// Script/Ssg/Utils/AdsUtil.js

'use strict';

window.AdsUtil = cc.Class({
    extends: cc.Component,

    properties: {},

    statics: {
        //显示Baner广告

        showBaner: function showBaner() {
            if (SystemInfo.getPlatform() == 'weChatGame' || SystemInfo.getPlatform() == 'weChat') {
                WXads.showBanner();
            } else if (SystemInfo.getPlatform() == 'qqPlay') {
                QQAds.showBanner(true);
            }
        },

        hideBanner: function hideBanner() {
            if (SystemInfo.getPlatform() == 'weChatGame' || SystemInfo.getPlatform() == 'weChat') {} else if (SystemInfo.getPlatform() == 'qqPlay') {
                QQAds.showBanner(true);
            }
        },

        showVideo: function showVideo(callback) {
            SoundUtil.pauseMusic();
            if (SystemInfo.getPlatform() == 'weChatGame' || SystemInfo.getPlatform() == 'weChat') {
                WXads.showVide(callback);
            } else if (SystemInfo.getPlatform() == 'qqPlay') {
                QQAds.showVideo(callback);
            } else {
                callback(true);
            }
        }

    }
});

module.exports = AdsUtil;

cc._RF.pop();